package com.ruoyi.domain;

import com.ruoyi.common.annotation.Excels;
import com.ruoyi.system.domain.ProCreateBuilding;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 施工日志对象 construction_recording
 *
 * @author ruoyi
 * @date 2020-07-07
 */
public class ConstructionRecording extends BaseEntity {
    private static final long serialVersionUID = 1L;


    public ProCreateBuilding getProCreateBuilding() {
        return proCreateBuilding;
    }

    public void setProCreateBuilding(ProCreateBuilding proCreateBuilding) {
        this.proCreateBuilding = proCreateBuilding;
    }

    @Excels({
            @Excel(name = "项目名称", targetAttr = "pName", type = Excel.Type.EXPORT),
            @Excel(name="创建时间",targetAttr = "pTime" ,type = Excel.Type.EXPORT),
            @Excel(name="项目经理",targetAttr = "pFounder",type = Excel.Type.EXPORT)
    })
    private ProCreateBuilding proCreateBuilding;
    /**
     * id
     */
    private Long cId;

    /**
     * 资料名称
     */
    @Excel(name = "资料名称")
    private String cName;

    /**
     * 上传资料
     */
    @Excel(name = "上传资料")
    private String cFile;

    /**
     * 上传时间
     */
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cTime;

    /**
     * 上传人
     */
   // @Excel(name = "上传人")
    private String cHeir;

    /**
     * 备注
     */
   // @Excel(name = "备注")
    private String cRemark;

    /**
     * 材料名称
     */
    @Excel(name = "材料名称")
    private String cTname;

    /**
     * 材料数量
     */
    @Excel(name = "材料数量")
    private Long cTnum;

    /**
     * 外键id
     */
    //@Excel(name = "外键id")
    private Long cPid;

    public Long getcPid() {
        return cPid;
    }

    public void setcPid(Long cPid) {
        this.cPid = cPid;
    }

    public void setcId(Long cId) {
        this.cId = cId;
    }

    public Long getcId() {
        return cId;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }

    public String getcName() {
        return cName;
    }

    public void setcFile(String cFile) {
        this.cFile = cFile;
    }

    public String getcFile() {
        return cFile;
    }

    public void setcTime(Date cTime) {
        this.cTime = cTime;
    }

    public Date getcTime() {
        return cTime;
    }

    public void setcHeir(String cHeir) {
        this.cHeir = cHeir;
    }

    public String getcHeir() {
        return cHeir;
    }

    public void setcRemark(String cRemark) {
        this.cRemark = cRemark;
    }

    public String getcRemark() {
        return cRemark;
    }

    public void setcTname(String cTname) {
        this.cTname = cTname;
    }

    public String getcTname() {
        return cTname;
    }

    public void setcTnum(Long cTnum) {
        this.cTnum = cTnum;
    }

    public Long getcTnum() {
        return cTnum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("cId", getcId())
                .append("cName", getcName())
                .append("cFile", getcFile())
                .append("cTime", getcTime())
                .append("cHeir", getcHeir())
                .append("cRemark", getcRemark())
                .append("cTname", getcTname())
                .append("cPid", getcPid())
                .append("cTnum", getcTnum())
                .append("proCreateBuilding",getProCreateBuilding())
                .toString();
    }
}
